<?php

$server = "localhost";
$uname = "root";
$umm = "root";
$db = "maxik";
$kaldi_unam = $_POST['name'];
$kaldi_yax = $_POST['yax'];
$kaldi_ads = $_POST['ads'];
$con = mysqli_connect($server, $uname, $umm, $db);
if ($con) {
    $sql_add = "insert into table1(isim,yax,ads)values('$kaldi_unam','$kaldi_yax','$kaldi_ads')";
    $go = mysqli_query($con, $sql_add);
    if ($go) {
        echo '添加成功';
    } else {
        echo '添加失败'.mysqli_error($con);
    }
} else {
    echo 'kirix maglup boldi'.mysqli_connect_error();
}

